<?php 
include_once "../functions.php";
try {
    $pdo = new Pdo("mysql:host=localhost;dbname=c70","rood","");
	$pdo->query("set names utf8");
	$pdo->setAttribute(PDO::ATTR_ERRMODE,PDO::ERRMODE_EXCEPTION);
	$sth = $pdo->prepare("update stu set name='老宋'")；
	$sid = 9;
	$sth->bindParam(1,$sid,PDO::PARAM_INI);
	$rows = $sth ->execute();
	var_dump($rows);
} catch (PDOException $e) {
    echo $e->getMessage();exit;
}






 ?>